import React, {Component} from 'react';

class Child extends Component {

    state={
        students:'123123'
    }

    render() {


        return (
            <div>
                <h2>我是子组件</h2>
                <ul>
                    {this.state.students.map((item)=>{
                        return <li key={item.id}>{item.name}-{item.age}</li>
                    })}
                </ul>
            </div>
        );
    }
}

export default Child;